﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200059D RID: 1437
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class FinishFirstTalkNpcCsReq : IMessage<FinishFirstTalkNpcCsReq>, IMessage, IEquatable<FinishFirstTalkNpcCsReq>, IDeepCloneable<FinishFirstTalkNpcCsReq>, IBufferMessage
	{
		// Token: 0x1700126E RID: 4718
		// (get) Token: 0x0600409A RID: 16538 RVA: 0x000B0F08 File Offset: 0x000AF108
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<FinishFirstTalkNpcCsReq> Parser
		{
			get
			{
				return FinishFirstTalkNpcCsReq._parser;
			}
		}

		// Token: 0x1700126F RID: 4719
		// (get) Token: 0x0600409B RID: 16539 RVA: 0x000B0F0F File Offset: 0x000AF10F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return FinishFirstTalkNpcCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17001270 RID: 4720
		// (get) Token: 0x0600409C RID: 16540 RVA: 0x000B0F21 File Offset: 0x000AF121
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return FinishFirstTalkNpcCsReq.Descriptor;
			}
		}

		// Token: 0x0600409D RID: 16541 RVA: 0x000B0F28 File Offset: 0x000AF128
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FinishFirstTalkNpcCsReq()
		{
		}

		// Token: 0x0600409E RID: 16542 RVA: 0x000B0F30 File Offset: 0x000AF130
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FinishFirstTalkNpcCsReq(FinishFirstTalkNpcCsReq other) : this()
		{
			this.npcId_ = other.npcId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600409F RID: 16543 RVA: 0x000B0F55 File Offset: 0x000AF155
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FinishFirstTalkNpcCsReq Clone()
		{
			return new FinishFirstTalkNpcCsReq(this);
		}

		// Token: 0x17001271 RID: 4721
		// (get) Token: 0x060040A0 RID: 16544 RVA: 0x000B0F5D File Offset: 0x000AF15D
		// (set) Token: 0x060040A1 RID: 16545 RVA: 0x000B0F65 File Offset: 0x000AF165
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint NpcId
		{
			get
			{
				return this.npcId_;
			}
			set
			{
				this.npcId_ = value;
			}
		}

		// Token: 0x060040A2 RID: 16546 RVA: 0x000B0F6E File Offset: 0x000AF16E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as FinishFirstTalkNpcCsReq);
		}

		// Token: 0x060040A3 RID: 16547 RVA: 0x000B0F7C File Offset: 0x000AF17C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(FinishFirstTalkNpcCsReq other)
		{
			return other != null && (other == this || (this.NpcId == other.NpcId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x060040A4 RID: 16548 RVA: 0x000B0FAC File Offset: 0x000AF1AC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.NpcId != 0U)
			{
				num ^= this.NpcId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x060040A5 RID: 16549 RVA: 0x000B0FEB File Offset: 0x000AF1EB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060040A6 RID: 16550 RVA: 0x000B0FF3 File Offset: 0x000AF1F3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060040A7 RID: 16551 RVA: 0x000B0FFC File Offset: 0x000AF1FC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.NpcId != 0U)
			{
				output.WriteRawTag(40);
				output.WriteUInt32(this.NpcId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x060040A8 RID: 16552 RVA: 0x000B1030 File Offset: 0x000AF230
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.NpcId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.NpcId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x060040A9 RID: 16553 RVA: 0x000B106E File Offset: 0x000AF26E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(FinishFirstTalkNpcCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.NpcId != 0U)
			{
				this.NpcId = other.NpcId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x060040AA RID: 16554 RVA: 0x000B109F File Offset: 0x000AF29F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x060040AB RID: 16555 RVA: 0x000B10A8 File Offset: 0x000AF2A8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 40U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.NpcId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04001977 RID: 6519
		private static readonly MessageParser<FinishFirstTalkNpcCsReq> _parser = new MessageParser<FinishFirstTalkNpcCsReq>(() => new FinishFirstTalkNpcCsReq());

		// Token: 0x04001978 RID: 6520
		private UnknownFieldSet _unknownFields;

		// Token: 0x04001979 RID: 6521
		public const int NpcIdFieldNumber = 5;

		// Token: 0x0400197A RID: 6522
		private uint npcId_;
	}
}
